// pages/star/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    star:0,//几颗星
    status:'请评价'
  },

  
  onLoad: function (options) {

  },

  onShow: function () {

  },

  onChange(event) {
    this.setData({
      star: event.detail,
    });
    let status='';
    switch(this.data.star){
      case 1:
        status='很差';
        break;
      case 2:
        status='比较差';
        break;
      case 3:
        status='一般';
        break;
      case 4:
        status='比较满意';
        break;
      case 5:
        status='很满意';
        break;
      case 0.5:
        status='很差啊啊啊';
        break;
      case 1.5:
        status='比较差啊啊啊';
        break;
      case 2.5:
        status='一般啊啊啊';
        break;
      case 3.5:
        status='比较满意啊啊啊';
        break;
      case 4.5:
        status='很满意啊啊啊';
        break;
      case 6:
        status='超级满意';
        break;
    }
    this.setData({
      status:status
    })
  },
})